package com.imooc.productviewservicefeign2.service;

import com.imooc.productviewservicefeign2.client.productclientfeign;
import com.imooc.productviewservicefeign2.pojo.product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: springcloud_demo
 * @description:
 * @author: ZhangKai
 * @create: 2019-09-17 21:35
 **/
@Service
public class productservice {

    @Autowired
    productclientfeign productclientfeign;

    public List<product> listProducts(){
        return productclientfeign.listProducts();
    }
}
